import { decryptDes } from "@/utils/utils";


let local = async function()  {
	let key = "";
	
	try {
		let pk = await this.$req.sendCheck('/pageKey/get.dnl', {})
		key = new Promise(function(resolve, reject) {
			key = decryptDes(pk.data, 'shendawl', ['s', 'h', 'e', 'n', 'd', 'a', 'w', 'l']);
			console.log('key::::'+key)
			resolve(key);
		})
	} catch (e) {
		console.log(e)
	}
	return key;
}


export default {
	install(vm) {
		vm.prototype.$getPageKey = local;
	}
}
